# 列表推导

# 列表+条件判断
li2 = [i * 10 for i in range(1, 10) if i % 2 == 0]
print(li2)  # [20, 40, 60, 80]

# 列表+三目运算符
li3 = [i * 100 if i % 3 == 0 else i * 10 for i in range(1, 10)]
print(li3)  # [10, 20, 300, 40, 50, 600, 70, 80, 900]
